package com.zonta.finance.admin.controller;

import com.zonta.finance.common.dto.ApiResponse;
import com.zonta.finance.domain.po.Member;
import com.zonta.finance.serivce.IMemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author zonta
 * @since 2024-07-20
 */
@RestController
@Api(tags = "用户信息接口")
@RequestMapping("/member")
@RequiredArgsConstructor
public class  MemberController {
    private final IMemberService memberService;
    @ApiOperation("查询信息")
    @GetMapping
    public ApiResponse<Member> getMemberById(){
        return ApiResponse.success(memberService.getById(2));
    }

}
